package com.example.boot1.service.impl;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.example.boot1.mapper.VueDishesMapper;
import com.example.boot1.bean.VueDishes;
import com.example.boot1.service.VueDishesService;

import java.util.List;

@Service
public class VueDishesServiceImpl implements VueDishesService{

    @Autowired
    private VueDishesMapper vueDishesMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return vueDishesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VueDishes record) {
        return vueDishesMapper.insert(record);
    }

    @Override
    public int insertSelective(VueDishes record) {
        return vueDishesMapper.insertSelective(record);
    }

    @Override
    public VueDishes selectByPrimaryKey(Integer id) {
        return vueDishesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(VueDishes record) {
        return vueDishesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VueDishes record) {
        return vueDishesMapper.updateByPrimaryKey(record);
    }

    /**
     * 查询到所有菜品类目
     * @return
     */
    @Override
    public List<VueDishes> getCate() {
        return vueDishesMapper.getCate();
    }

}
